package com.lz.servlet.controller;

import com.lz.common.annotation.AnonymousAccess;
import com.lz.common.annotation.PreventDuplicateSubmit;
import lombok.RequiredArgsConstructor;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

@RequestMapping("/Mvc")
@Controller
@RequiredArgsConstructor
public class MVCController {

    @Resource
    private TestController testController;

    @PreventDuplicateSubmit
    @AnonymousAccess
    @RequestMapping("/hello02")
    public String hello02() {
        return "redirect:/index.html";
    }
    @PreventDuplicateSubmit
    @AnonymousAccess
    @RequestMapping("/hello03")
    public String hello03() {
        return "redirect:/login.html";
    }
}
